Skip to content

compiler: Simplify fission#2973

Open
FabioLuporini wants to merge 5 commits into
mainfrom
simplify-fission
Open

compiler: Simplify fission#2973
FabioLuporini wants to merge 5 commits into
mainfrom
simplify-fission

Conversation

@FabioLuporini

Copy link
Copy Markdown
Contributor

without this simplification (which was done in 2021, now it seems unneeded, AFAICT based on the tests I've managed to run...) a new test in PRO would fail

I don't see the logic behind it, so unless CI/CD complains, I'd drop it

It might also be a leftover from some other tweaks that was later undone... not sure!

@codecov

codecov Bot commented Jul 15, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 87.50000% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.55%. Comparing base (35f711f) to head (7f8019b).

Files with missing lines Patch % Lines
devito/ir/clusters/cluster.py 50.00% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2973      +/-   ##
==========================================
- Coverage   83.57%   83.55%   -0.03%     
==========================================
  Files         257      257              
  Lines       53783    53801      +18     
  Branches     4608     4608              
==========================================
+ Hits        44951    44955       +4     
- Misses       8035     8048      +13     
- Partials      797      798       +1     
Flag Coverage Δ
pytest-gpu-aomp-amdgpuX 68.53% <67.74%> (+<0.01%) ⬆️
pytest-gpu-gcc- 78.20% <87.50%> (+<0.01%) ⬆️
pytest-gpu-icx- 78.14% <87.50%> (-0.02%) ⬇️
pytest-gpu-nvc-nvidiaX 69.18% <67.74%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@FabioLuporini
FabioLuporini force-pushed the simplify-fission branch 2 times, most recently from d44b2e3 to d0379ba Compare July 16, 2026 21:29

@EdCaunt EdCaunt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor comment but seems reasonable

def scope(self):
return Scope(exprs=self.exprs)

@cached_property

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why cache this?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that likely was for homogeneity I didn't even think about that, but yes, you're right.

If you don't mind, I'd drop it (along with the other useless ones in that class) in the subsequent PR

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants